// JavaScript Document
   var speed=10;
   var demo2 = document.getElementById("demo2");
   var div1 = document.getElementById("div1");
   var demo1 = document.getElementById("demo1");
   demo2.innerHTML=demo1.innerHTML
   function Marquee(){
      if(demo2.offsetWidth-div1.scrollLeft<=0)
         div1.scrollLeft-=demo1.offsetWidth
      else{
         div1.scrollLeft++
      }
   }
   var MyMar=setInterval(Marquee,speed)
   div1.onmouseover=function() {clearInterval(MyMar)}
   div1.onmouseout=function() {MyMar=setInterval(Marquee,speed)}